package cn.tedu.pojo;/**
 * @Author 金帮嘉诚 @Date 2021-07-19 星期一 20:43
 */
/*本类用于测试*/

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

/**知识点*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Component
public class Emp {
    // `id` int(11) NOT NULL AUTO_INCREMENT,
    //  `ename` varchar(10) DEFAULT NULL,
    //  `job` varchar(9) DEFAULT NULL,
    //  `mgr` decimal(4,0) DEFAULT NULL,
    //  `hiredate` date DEFAULT NULL,
    //  `sal` decimal(7,2) DEFAULT NULL,
    //  `comm` decimal(7,2) DEFAULT NULL,
    //  `deptno` int(11) DEFAULT NULL,
    //  PRIMARY KEY (`id`)
    private Integer id;
    private String ename;
    private String job;
    private Double mgr;
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private java.sql.Date hiredate;
    private Double sal;
    private Double comm;
    private Integer deptno;

}
